#include "CafeteiraCamila.h"
#include <GL/glu.h>
#include <GL/gl.h>
#include "gllib/Objects.h"
#include <math.h>

void CafeteiraCamila::draw() {
    glPushMatrix();
    glColor3f(1.0,1.0,1.0);
    glScalef(0.45, 0.7, 0.45);
    gllibTorus(0.4, 0.5, 20, 20);
    glPopMatrix();

    glPushMatrix();
    glColor3f(0.0,0.0,0.0);
    glTranslatef(0.0, 0.3, 0.0);
    gllibCylinder(0.3, 0.05, 20);
    glPopMatrix();

    glPushMatrix();
    glColor3f(0.0,0.0,0.0);
    glTranslatef(0.32, 0.15, 0.0);
    glRotatef(90, 1.0, 0.0, 0.0);
    glScalef(0.7, 1.0, 0.6);
    gllibTorus(0.05, 0.28, 20, 20);
    glPopMatrix();

    glPushMatrix();
    glColor3f(0.0,0.0,0.0);
    glTranslatef(0.0, 0.4, 0.0);
    gllibCylinder(0.05, 0.1, 20);
    glPopMatrix();

    glPushMatrix();
    glColor3f(0.0,0.0,0.0);
    glTranslatef(0.0, 0.65, 0.0);
    glScalef(1.0, 0.8, 1.0);
    gllibSphere(0.32, 20);
    glPopMatrix();

    glPushMatrix();
    glColor3f(0.0,0.0,0.0);
    glTranslatef(0.0, 0.80, 0.0);
    gllibCylinder(0.32, 0.25, 20);
    glPopMatrix();

    glPushMatrix();
    glColor3f(0.3,0.3,0.3);
    glTranslatef(0.0, 0.95, 0.0);
    gllibCone(0.32, 0.05, 10);
    glPopMatrix();

    glPushMatrix();
    glColor3f(0.0,0.0,0.0);
    glTranslatef(0.0, -0.4, 0.0);
    glScalef(0.6, 0.4, 0.6);
    gllibTorus(0.32, 0.4, 20, 20);
    glPopMatrix();

    glPushMatrix();
    glColor3f(0.0,0.0,0.0);
    glTranslatef(0.0, -0.35, 0.0);
    glScalef(0.58, 0.4, 0.58);
    gllibTorus(0.32, 0.4, 20, 20);
    glPopMatrix();

    glPushMatrix();
    glColor3f(0.0,0.0,0.0);
    glTranslatef(-0.4, -0.225, 0.0);
    gllibCylinder(0.4, 0.45, 20);
    glPopMatrix();

    //botao vermelho
    glPushMatrix();
    glColor3f(1.0,0.0,0.0);
    glTranslatef(-0.485, -0.3, 0.4);
    glRotatef(90, 1.0, 0.0, 0.0);
    gllibCylinder(0.04, 0.04, 20);
    glPopMatrix();

    glPushMatrix();
    glColor3f(0.4,0.4,0.4);
    glTranslatef(-0.45, 0.45, 0.0);
    glScalef(1.0, 1.0, 1.2);
    gllibCylinder(0.32, 0.95, 20);
    glPopMatrix();

    glPushMatrix();
    glColor3f(0.0,0.0,0.0);
    glTranslatef(-0.43, 0.95, 0.0);
    glScalef(1.1, 1.0, 1.2);
    gllibCylinder(0.32, 0.05, 20);
    glPopMatrix();
}

